import { http } from './service.js'

// 教师
export const getChildrenMonthly = (params) => {
	return http.request({
		url: '/pad/children_month_record/children_info',
		method: 'POST',
		params
	})
}

export const addChildrenMonthly = (params) => {
	return http.request({
		url: '/pad/children_month_record/add',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
		data: params
	})
}

export const getMonthlyList = (params) => {
	return http.request({
		url: '/pad/children_month_record/list',
		method: 'POST',
		params
	})
}

export const getMonthlyInfo = (params) => {
	return http.request({
		url: '/pad/children_month_record/get',
		method: 'POST',
		params
	})
}

//家长

export const getMonthlyById = (params) => {
	return http.request({
		url: '/api/children_month_record/getId',
		method: 'POST',
		params
	})
}